package com.healthcloud.service;

import java.util.List;

import com.healthcloud.entity.FoodGuidance;
import com.healthcloud.utils.PageParam;

/**
 * Created by houxianghua on 2016/5/10.
 */
public interface FoodGuidanceService {
    int save(FoodGuidance foodGuidance);

    int update(FoodGuidance foodGuidance);

    int delete(Long id);

    List<FoodGuidance> findByEntity(FoodGuidance foodGuidance);

    List<FoodGuidance> findByLikeName(String name);

    /**
     * 获取热门食谱
     * @param foodName
     * @param pageParam
     * @return
     */
    List<FoodGuidance> getHotFood(String foodName, PageParam pageParam);

    /**
     * 获取最新食谱
     * @param foodName
     * @param pageParam
     * @return
     */
    List<FoodGuidance> getNewFood(String foodName, PageParam pageParam);
}
